地図:愛媛県

説明

指定した座標に愛媛県を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x+16,y,c,1,3,3,12,0,5,6,31);
uart(n,14,3,x+24,y,c,8,184,96,128,128,0,0,0);
y=y+8;
uart(n,14,3,x+8,y,c,0,30,4,1,1,0,3,0);
uart(n,14,3,x+16,y,c,63,63,63,255,255,255,255,255);
uart(n,14,3,x+24,y,c,128,135,223,255,255,255,252,240);
uart(n,14,3,x+32,y,c,14,223,255,254,240,224,0,0);
y=y+8;
uart(n,14,3,x,y,c,0,0,0,0,0,0,0,3);
uart(n,14,3,x+8,y,c,1,1,7,15,63,63,255,255);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,224,192,192,128,128,128,0,0);
y=y+8;
uart(n,14,3,x,y,c,4,56,96,128,0,0,0,0);
uart(n,14,3,x+8,y,c,127,255,255,127,255,31,15,239);
uart(n,14,3,x+16,y,c,224,224,240,248,248,224,192,192);
y=y+8;
uart(n,14,3,x,y,c,2,0,1,0,0,0,0,0);
uart(n,14,3,x+8,y,c,63,63,30,126,31,31,31,54);
uart(n,14,3,x+16,y,c,128,0,0,0,0,0,0,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(0,0,1);

目次に戻る